package com.sy.service;

import com.github.pagehelper.Page;
import com.sy.dto.LeaveSimpleMessage;
import com.sy.dto.LeaveSimpleMessageTeacher;
import com.sy.entity.LeaveMessageDetail;
import com.sy.vo.NewLeavenWordsVo;
import com.sy.vo.NewReplyWordsVo;
import com.sy.vo.SearchLeaWordByKeyWordsVo;
import com.sy.vo.SearchTeaLeaWordByKeyVo;

import java.util.List;

public interface NewLeavenWordsService {
  /**
   * 添加新的留言
   * @param newLeavenWordsVo
   * @return
   */
  boolean  addNewMessage(NewLeavenWordsVo newLeavenWordsVo);

  /**
   * 获取所有留言
   * @param vo
   * @return
   */
  Page<LeaveSimpleMessage> getAllLeaveMessage(SearchLeaWordByKeyWordsVo vo);

  /**
   * 获取老师所有的留言
   * @param vo
   * @return
   */
  Page<LeaveSimpleMessageTeacher> getAllLeaveMessageByTeacher(SearchTeaLeaWordByKeyVo vo);
  /**
   * 删除留言
   * @param id
   * @return
   */
  boolean deleteLeavenWord(String id);

  /**
   * 添加回复
   * @param newReplyWordsVo
   * @return
   */
  boolean addNewReplyWords(NewReplyWordsVo newReplyWordsVo);

  /**
   * 获取所有的回复信息
   * @param leaveMessageId
   * @return
   */
  List<LeaveMessageDetail> getAllReplyMessage(String leaveMessageId);
}
